package com.gangan.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gangan.model.Activity;
import com.gangan.mapper.ActivityMapper;
import com.gangan.service.IActivityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 活动数据存储表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-09-07
 */
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements IActivityService {
    @Autowired
    private  ActivityMapper activityMapper;

    @Override
    public List<Map> getActivityByStartTimeorLabel(Page page,String label, Integer status) {
        return activityMapper.getActivityByStartTimeorLabel(page,label,status);
    }
}
